package com.deductive.domain.wq;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 医疗后送阶梯表
 * @TableName disposition_wq_ylhsjt
 */
@TableName(value ="disposition_wq_ylhsjt")
@Data
public class DispositionWqYlhsjt implements Serializable {
    /**
     * id
     */
    @TableId(value = "id",type= IdType.AUTO)
    private Integer id;

    /**
     * 方案识别码
     */
    @TableField(value = "plan_code")
    private String planCode;

    /**
     * 阶梯类型
     */
    @TableField(value = "staircase_type")
    private String staircaseType;

    /**
     * 阶梯级别
     */
    @TableField(value = "staircase_level")
    private String staircaseLevel;

    /**
     * 医疗救治机构种类
     */
    @TableField(value = "yljzjgzl")
    private String yljzjgzl;

    /**
     * 医疗后送工具
     */
    @TableField(value = "ylhsgj")
    private String ylhsgj;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DispositionWqYlhsjt other = (DispositionWqYlhsjt) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPlanCode() == null ? other.getPlanCode() == null : this.getPlanCode().equals(other.getPlanCode()))
            && (this.getStaircaseType() == null ? other.getStaircaseType() == null : this.getStaircaseType().equals(other.getStaircaseType()))
            && (this.getStaircaseLevel() == null ? other.getStaircaseLevel() == null : this.getStaircaseLevel().equals(other.getStaircaseLevel()))
            && (this.getYljzjgzl() == null ? other.getYljzjgzl() == null : this.getYljzjgzl().equals(other.getYljzjgzl()))
            && (this.getYlhsgj() == null ? other.getYlhsgj() == null : this.getYlhsgj().equals(other.getYlhsgj()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPlanCode() == null) ? 0 : getPlanCode().hashCode());
        result = prime * result + ((getStaircaseType() == null) ? 0 : getStaircaseType().hashCode());
        result = prime * result + ((getStaircaseLevel() == null) ? 0 : getStaircaseLevel().hashCode());
        result = prime * result + ((getYljzjgzl() == null) ? 0 : getYljzjgzl().hashCode());
        result = prime * result + ((getYlhsgj() == null) ? 0 : getYlhsgj().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", planCode=").append(planCode);
        sb.append(", staircaseType=").append(staircaseType);
        sb.append(", staircaseLevel=").append(staircaseLevel);
        sb.append(", yljzjgzl=").append(yljzjgzl);
        sb.append(", ylhsgj=").append(ylhsgj);
        sb.append(", remark=").append(remark);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}